package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TFlowMapper;
import com.ruoyi.system.domain.TFlow;
import com.ruoyi.system.service.ITFlowService;

/**
 * 货物动态Service业务层处理
 * 
 * @author 张倍
 * @date 2024-05-08
 */
@Service
public class TFlowServiceImpl implements ITFlowService 
{
    @Autowired
    private TFlowMapper tFlowMapper;

    /**
     * 查询货物动态
     * 
     * @param item3Id 货物动态主键
     * @return 货物动态
     */
    @Override
    public TFlow selectTFlowByItem3Id(Integer item3Id)
    {
        return tFlowMapper.selectTFlowByItem3Id(item3Id);
    }

    /**
     * 查询货物动态列表
     * 
     * @param tFlow 货物动态
     * @return 货物动态
     */
    @Override
    public List<TFlow> selectTFlowList(TFlow tFlow)
    {
        return tFlowMapper.selectTFlowList(tFlow);
    }

    /**
     * 新增货物动态
     * 
     * @param tFlow 货物动态
     * @return 结果
     */
    @Override
    public int insertTFlow(TFlow tFlow)
    {
        return tFlowMapper.insertTFlow(tFlow);
    }

    /**
     * 修改货物动态
     * 
     * @param tFlow 货物动态
     * @return 结果
     */
    @Override
    public int updateTFlow(TFlow tFlow)
    {
        return tFlowMapper.updateTFlow(tFlow);
    }

    /**
     * 批量删除货物动态
     * 
     * @param item3Ids 需要删除的货物动态主键
     * @return 结果
     */
    @Override
    public int deleteTFlowByItem3Ids(Integer[] item3Ids)
    {
        return tFlowMapper.deleteTFlowByItem3Ids(item3Ids);
    }

    /**
     * 删除货物动态信息
     * 
     * @param item3Id 货物动态主键
     * @return 结果
     */
    @Override
    public int deleteTFlowByItem3Id(Integer item3Id)
    {
        return tFlowMapper.deleteTFlowByItem3Id(item3Id);
    }
}
